//package com.jxmcloud.business.cut.controller.nah.articles;
//
//import com.jxmcloud.business.cut.constants.NewsApi;
//import com.jxmcloud.business.cut.dto.articles.NewsSearchReqVO;
//import com.jxmcloud.business.cut.dto.articles.OldNewsArticlesSyncReqVO;
//import com.jxmcloud.business.cut.service.articles.INewsArticlesService;
//import com.jxmcloud.business.cut.service.articles.IOldNewsArticlesService;
//import com.xlcloud.platform.util.RUtil;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.*;
//
//import javax.annotation.Resource;
//import javax.validation.Valid;
//
///**
// * @ClassName NahNewsArticlesController
// * @Description 对外提供砍一刀拉新相关接口 - 不鉴权接口
// * @Author cjy
// * @Date 2025/2/18 下午2:12
// * @Version 1.0
// **/
//@Validated
//@Slf4j
//@RestController
//@RequestMapping(NewsApi.NAH_CUT_ARTICLES)
//public class NahNewsArticlesController {
//
//    @Resource
//    private IOldNewsArticlesService iOldNewsArticlesService;
//    @Resource
//    private INewsArticlesService iNewsArticlesService;
//
//    /**
//     * @Description 同步old砍一刀拉新文章数据
//     * @Author cjy
//     * @Date 下午2:51 2025/2/18
//     *
//     * @param reqVO
//     * @return java.lang.String
//     **/
//    @PostMapping("/syncOldNews")
////    @Lock(value = RedisLockConstant.NEWS_ADD_LOCK, autoRenewal = true)
//    public String syncOldNews(@Valid @RequestBody OldNewsArticlesSyncReqVO reqVO) {
//        iOldNewsArticlesService.syncOldNews(reqVO);
//        return RUtil.success2();
//    }
//
//    /**
//     * @Description 首页楼层获取最新资讯的标题列表
//     * @Author cjy
//     * @Date 下午2:13 2025/2/27
//     *
//     * @param reqVO
//     * @return java.lang.String
//     **/
//    @GetMapping("/getHomeFloorLatestNewsList")
//    public String getHomeFloorLatestNewsList(NewsSearchReqVO reqVO) {
//        return RUtil.success2(iNewsArticlesService.getHomeFloorLatestNewsList(reqVO));
//    }
//
//    /**
//     * @Description 获取砍一刀拉新详情
//     * @Author cjy
//     * @Date 下午2:13 2025/2/27
//     *
//     * @param newsId
//     * @return java.lang.String
//     **/
//    @GetMapping("/getNewsDetailsById")
//    public String getNewsDetailsById(Long newsId) {
//        return RUtil.success2(iNewsArticlesService.getNewsDetailsById(newsId));
//    }
//}
